//
//  CTNetHelper.h
//  CT
//
//  Created by liufanwei on 15/4/4.
//  Copyright (c) 2015年 liufanwei. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kBaseUrl            @"http://114.215.156.58/chs/"
typedef void(^CTNetBlock)(id data);

@interface CTNetHelper : NSObject

+(instancetype)ShareInstance;

/**
 *  登录
 *
 *  @param dic @{@"account":acctount,@"password":pwd
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)login:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  注册
 *
 *  @param dic @{@"account":account,@"password":pwd,@"memo":@"ios"}
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)regiter:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;


/**
 *  呼叫
 *  caller 主叫号码
 *  callees 被叫的号码
 *  isShowNumber 是否显示号码(1 显示 0 不显示)
 *  @param blcok
 */
-(void)makeCall:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  获取余额
 *
 *  @param dic @{@"account":@""}
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)remainingMoney:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  修改密码
 *  oldpassword 当前密码
 *  newpassword 新密码
 *  account
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)changePassword:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  密码验证
*   account 账号
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)passwordVerify:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  重置密码
 *  pin 账号
 *  code 验证码
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)resetPassword:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  卡密充值
 *  account 账号
 *  pin 充值卡号
 *  password 充值密码
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)charge:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;

/**
 *  接通时间
 *  date 日期字符串(如：20150304)
 *  caller 主叫号码
 *  callees 被叫的号码
 *  @param blcok {@"msg":@"", @"code":@"123'}
 */
-(void)callTime:(NSDictionary*)dic WithCallBack:(CTNetBlock)blcok;
@end






